Optimal. Leaf size=111 \[ \frac {2 (a+a \sin (c+d x))^6}{3 a^3 d}-\frac {12 (a+a \sin (c+d x))^7}{7 a^4 d}+\frac {13 (a+a \sin (c+d x))^8}{8 a^5 d}-\frac {2 (a+a \sin (c+d x))^9}{3 a^6 d}+\frac {(a+a \sin (c+d x))^{10}}{10 a^7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 111, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {2915, 12, 90}
\begin {gather*} \frac {(a \sin (c+d x)+a)^{10}}{10 a^7 d}-\frac {2 (a \sin (c+d x)+a)^9}{3 a^6 d}+\frac {13 (a \sin (c+d x)+a)^8}{8 a^5 d}-\frac {12 (a \sin (c+d x)+a)^7}{7 a^4 d}+\frac {2 (a \sin (c+d x)+a)^6}{3 a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 90
Rule 2915
Rubi steps
\begin {align*} \int \cos ^5(c+d x) \sin ^2(c+d x) (a+a \sin (c+d x))^3 \, dx &=\frac {\text {Subst}\left (\int \frac {(a-x)^2 x^2 (a+x)^5}{a^2} \, dx,x,a \sin (c+d x)\right )}{a^5 d}\\ &=\frac {\text {Subst}\left (\int (a-x)^2 x^2 (a+x)^5 \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {\text {Subst}\left (\int \left (4 a^4 (a+x)^5-12 a^3 (a+x)^6+13 a^2 (a+x)^7-6 a (a+x)^8+(a+x)^9\right ) \, dx,x,a \sin (c+d x)\right )}{a^7 d}\\ &=\frac {2 (a+a \sin (c+d x))^6}{3 a^3 d}-\frac {12 (a+a \sin (c+d x))^7}{7 a^4 d}+\frac {13 (a+a \sin (c+d x))^8}{8 a^5 d}-\frac {2 (a+a \sin (c+d x))^9}{3 a^6 d}+\frac {(a+a \sin (c+d x))^{10}}{10 a^7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.66, size = 110, normalized size = 0.99 \begin {gather*} -\frac {a^3 (-2835+34440 \cos (2 (c+d x))+5040 \cos (4 (c+d x))-4060 \cos (6 (c+d x))-1260 \cos (8 (c+d x))+84 \cos (10 (c+d x))-63840 \sin (c+d x)+8960 \sin (3 (c+d x))+8064 \sin (5 (c+d x))+240 \sin (7 (c+d x))-560 \sin (9 (c+d x)))}{430080 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(207\) vs.
\(2(101)=202\).
time = 0.35, size = 208, normalized size = 1.87
method | result | size |
risch | \(\frac {19 a^{3} \sin \left (d x +c \right )}{128 d}-\frac {a^{3} \cos \left (10 d x +10 c \right )}{5120 d}+\frac {a^{3} \sin \left (9 d x +9 c \right )}{768 d}+\frac {3 a^{3} \cos \left (8 d x +8 c \right )}{1024 d}-\frac {a^{3} \sin \left (7 d x +7 c \right )}{1792 d}+\frac {29 a^{3} \cos \left (6 d x +6 c \right )}{3072 d}-\frac {3 a^{3} \sin \left (5 d x +5 c \right )}{160 d}-\frac {3 a^{3} \cos \left (4 d x +4 c \right )}{256 d}-\frac {a^{3} \sin \left (3 d x +3 c \right )}{48 d}-\frac {41 a^{3} \cos \left (2 d x +2 c \right )}{512 d}\) | \(169\) |
derivativedivides | \(\frac {a^{3} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )+3 a^{3} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{8}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{24}\right )+3 a^{3} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+a^{3} \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(208\) |
default | \(\frac {a^{3} \left (-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{7}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{35}\right )+3 a^{3} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{8}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{24}\right )+3 a^{3} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{9}-\frac {\sin \left (d x +c \right ) \left (\cos ^{6}\left (d x +c \right )\right )}{21}+\frac {\left (\frac {8}{3}+\cos ^{4}\left (d x +c \right )+\frac {4 \left (\cos ^{2}\left (d x +c \right )\right )}{3}\right ) \sin \left (d x +c \right )}{105}\right )+a^{3} \left (-\frac {\left (\sin ^{4}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{10}-\frac {\left (\sin ^{2}\left (d x +c \right )\right ) \left (\cos ^{6}\left (d x +c \right )\right )}{20}-\frac {\left (\cos ^{6}\left (d x +c \right )\right )}{60}\right )}{d}\) | \(208\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.36, size = 110, normalized size = 0.99 \begin {gather*} \frac {84 \, a^{3} \sin \left (d x + c\right )^{10} + 280 \, a^{3} \sin \left (d x + c\right )^{9} + 105 \, a^{3} \sin \left (d x + c\right )^{8} - 600 \, a^{3} \sin \left (d x + c\right )^{7} - 700 \, a^{3} \sin \left (d x + c\right )^{6} + 168 \, a^{3} \sin \left (d x + c\right )^{5} + 630 \, a^{3} \sin \left (d x + c\right )^{4} + 280 \, a^{3} \sin \left (d x + c\right )^{3}}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 111, normalized size = 1.00 \begin {gather*} -\frac {84 \, a^{3} \cos \left (d x + c\right )^{10} - 525 \, a^{3} \cos \left (d x + c\right )^{8} + 560 \, a^{3} \cos \left (d x + c\right )^{6} - 8 \, {\left (35 \, a^{3} \cos \left (d x + c\right )^{8} - 65 \, a^{3} \cos \left (d x + c\right )^{6} + 6 \, a^{3} \cos \left (d x + c\right )^{4} + 8 \, a^{3} \cos \left (d x + c\right )^{2} + 16 \, a^{3}\right )} \sin \left (d x + c\right )}{840 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 255 vs.
\(2 (99) = 198\).
time = 2.28, size = 255, normalized size = 2.30 \begin {gather*} \begin {cases} \frac {8 a^{3} \sin ^{9}{\left (c + d x \right )}}{105 d} + \frac {12 a^{3} \sin ^{7}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{35 d} + \frac {8 a^{3} \sin ^{7}{\left (c + d x \right )}}{105 d} + \frac {3 a^{3} \sin ^{5}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{5 d} + \frac {4 a^{3} \sin ^{5}{\left (c + d x \right )} \cos ^{2}{\left (c + d x \right )}}{15 d} - \frac {a^{3} \sin ^{4}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{6 d} + \frac {a^{3} \sin ^{3}{\left (c + d x \right )} \cos ^{4}{\left (c + d x \right )}}{3 d} - \frac {a^{3} \sin ^{2}{\left (c + d x \right )} \cos ^{8}{\left (c + d x \right )}}{12 d} - \frac {a^{3} \sin ^{2}{\left (c + d x \right )} \cos ^{6}{\left (c + d x \right )}}{2 d} - \frac {a^{3} \cos ^{10}{\left (c + d x \right )}}{60 d} - \frac {a^{3} \cos ^{8}{\left (c + d x \right )}}{8 d} & \text {for}\: d \neq 0 \\x \left (a \sin {\left (c \right )} + a\right )^{3} \sin ^{2}{\left (c \right )} \cos ^{5}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.65, size = 168, normalized size = 1.51 \begin {gather*} -\frac {a^{3} \cos \left (10 \, d x + 10 \, c\right )}{5120 \, d} + \frac {3 \, a^{3} \cos \left (8 \, d x + 8 \, c\right )}{1024 \, d} + \frac {29 \, a^{3} \cos \left (6 \, d x + 6 \, c\right )}{3072 \, d} - \frac {3 \, a^{3} \cos \left (4 \, d x + 4 \, c\right )}{256 \, d} - \frac {41 \, a^{3} \cos \left (2 \, d x + 2 \, c\right )}{512 \, d} + \frac {a^{3} \sin \left (9 \, d x + 9 \, c\right )}{768 \, d} - \frac {a^{3} \sin \left (7 \, d x + 7 \, c\right )}{1792 \, d} - \frac {3 \, a^{3} \sin \left (5 \, d x + 5 \, c\right )}{160 \, d} - \frac {a^{3} \sin \left (3 \, d x + 3 \, c\right )}{48 \, d} + \frac {19 \, a^{3} \sin \left (d x + c\right )}{128 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 8.71, size = 109, normalized size = 0.98 \begin {gather*} \frac {\frac {a^3\,{\sin \left (c+d\,x\right )}^{10}}{10}+\frac {a^3\,{\sin \left (c+d\,x\right )}^9}{3}+\frac {a^3\,{\sin \left (c+d\,x\right )}^8}{8}-\frac {5\,a^3\,{\sin \left (c+d\,x\right )}^7}{7}-\frac {5\,a^3\,{\sin \left (c+d\,x\right )}^6}{6}+\frac {a^3\,{\sin \left (c+d\,x\right )}^5}{5}+\frac {3\,a^3\,{\sin \left (c+d\,x\right )}^4}{4}+\frac {a^3\,{\sin \left (c+d\,x\right )}^3}{3}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________